module teapo.storage.attached.dom {​ export class StorageBootAccess {​ editedUTC: number; files: string[];​ constructor( private _parentElement: HTMLElement, private _document: { createElement(tag: string): HTMLElement; }) {​ // populate editedUTC from corresponding attribute var editedUTCValue = this._parentElement.getAttribute('data-edited-utc'); if (editedUTCValue) { try { this.editedUTC = parseInt(editedUTCValue); } catch (parseEditedUTCError) { // TODO: logging safely? //console.log('parsing editedUTC ' + parseEditedUTCError); } } }​ open(): StorageAccess { // TODO: populate byName return new StorageAccess(this._parentElement, null, this._document); }​ }​}